from flask import Flask
from flask_migrate import Migrate
from db_init import db
from config import DevConfig
from views.users import user

app = Flask(__name__)
app.config.from_object(DevConfig)

migrate = Migrate()
db.init_app(app)
migrate.init_app(app,db)

app.register_blueprint(user,url_prefix='/init')

if __name__ == '__main__':
    print(app.url_map)
    app.run(host='0.0.0.0')